<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

</body>
<script>
  function isMoreThan10(num) {
    if (num > 10) {
      return true;
    } else {
      return false;
    }
  }

  function pickNum(arr) {
    var arr2 = [];
    for(var i = 0,j = 0; i < arr.length; i++){
      if(isMoreThan10(arr[i])){
        arr2[j++] = arr[i];
      }
    }
    return arr2;
  }

  console.log(pickNum([1, 2, 4, 8, 22, 33]));


</script>
</html>